SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 38542: A syntax error occurs when you specify the READ_LOCK_TYPE=NOLOCK option in a LIBNAME statement in SAS/ACCESS® Interface to OLE DB

DetailsAboutRate It

In SAS/ACCESS Interface to OLE DB, the following error occurs when you specify the READ_LOCK_TYPE=NOLOCK option in a LIBNAME statement:

ERROR: Describe error: IColumnsInfo::GetColumnInfo failed. :
Deferred prepare could not be completed.: Statement(s) could 
not be prepared.: Incorrect syntax near the keyword 'with'.

Specifying READ_LOCK_TYPE=NOLOCK results in the building of a query that uses incorrect syntax.

To avoid this problem, do not specify READ_LOCK_TYPE=NOLOCK. If you do not specify the option, the software can open the DBMS tables in the SAS® Explorer window.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to OLE DBMicrosoft Windows Server 2003 Enterprise 64-bit Edition9.21_M29.39.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.21_M29.39.2 TS2M29.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.21_M29.39.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.21_M29.39.2 TS2M29.3 TS1M0
Microsoft® Windows® for x649.21_M29.39.2 TS2M29.3 TS1M0
Microsoft Windows XP 64-bit Edition9.21_M29.39.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.21_M29.39.2 TS2M29.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.21_M29.39.2 TS2M29.3 TS1M0
Microsoft Windows Server 20089.21_M29.39.2 TS2M29.3 TS1M0
Microsoft Windows XP Professional9.21_M29.39.2 TS2M29.3 TS1M0
Windows 7 Enterprise 32 bit9.21_M29.39.2 TS2M29.3 TS1M0
Windows 7 Enterprise x649.21_M29.39.2 TS2M29.3 TS1M0
Windows 7 Home Premium 32 bit9.21_M29.39.2 TS2M29.3 TS1M0
Windows 7 Home Premium x649.21_M29.39.2 TS2M29.3 TS1M0
Windows 7 Professional 32 bit9.21_M29.39.2 TS2M29.3 TS1M0
Windows 7 Professional x649.21_M29.39.2 TS2M29.3 TS1M0
Windows 7 Ultimate 32 bit9.21_M29.39.2 TS2M29.3 TS1M0
Windows 7 Ultimate x649.21_M29.39.2 TS2M29.3 TS1M0
Windows Vista9.21_M29.39.2 TS2M29.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.